//
//  DYZSelectCarSeriesModel.m
//  DYZCars
//
//  Created by 白白龙腾 on 16/8/20.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZSelectCarSeriesModel.h"
#import "YYModel.h"
#import "DYZSelectCarSeriesChildModel.h"

@implementation DYZSelectCarSeriesModel
+(instancetype)carWithDict:(NSDictionary *)dict{
    DYZSelectCarSeriesModel *car = [[self alloc]init];
    car.carlineList = dict[@"carlineList"];
    car.label = dict[@"label"];
    return car;
}
- (NSArray *)carlineList{
    NSMutableArray *array = [NSMutableArray array];
    
    for (NSDictionary *dict in _carlineList) {
        DYZSelectCarSeriesChildModel *model = [DYZSelectCarSeriesChildModel yy_modelWithDictionary:dict];
        [array addObject:model];
    }
    return array;
}
@end
